﻿using Prism.Ioc;
using System.Windows;
using 起点番茄小说助手.Dialogs;
using 起点番茄小说助手.DialogViewModels;
using 起点番茄小说助手.DialogWindows;
using 起点番茄小说助手.ExtUrls;
using 起点番茄小说助手.ViewModels;
using 起点番茄小说助手.Views;

namespace 起点番茄小说助手
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App
    {
        protected override Window CreateShell()
        {
            return Container.Resolve<MainWindow>();
        }

        protected override void RegisterTypes(IContainerRegistry containerRegistry)
        {
            containerRegistry.RegisterDialogWindow<AddNovelDialogWindow>("addw");

            containerRegistry.RegisterForNavigation<NovelEditView,NovelEditViewModel>(ExtUrl.NocelViewRegion);
            containerRegistry.RegisterForNavigation<WebsiteView,WebsiteViewModel>(ExtUrl.WebsiteViewRegion);
            containerRegistry.RegisterForNavigation<AddNovelDialog, AddNovelDialogViewModel>();
        }
    }
}
